﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contacts.aspx.cs" Inherits="DoAn_BumTruong_DesignPattern.Contacts" %>

<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1 {
            float: right;
        }

        .mau {
            color: red;
        }

        .example3 {
            background: white;
            border: 1px double #DDD;
            border-radius: 5px;
            box-shadow: 0 0 5px #333;
            color: #666;
            float: left;
            padding: 5px 10px;
            width: 165px;
            outline: none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div class="round round-content">
        <table id="FormLienKe">
            <tr>
                <td colspan="2">
                    <h1 style="text-align: center;">Contact</h1>
                </td>
            </tr>
            <tr>
                <td class="style1"><span class="mau">(*)</span>Name:</td>
                <td style="width: 70%">
                    <asp:TextBox ID="txtHoTen" runat="server" Width="300px" CssClass="masterTooltip" ToolTip="Enter you name" />&nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                ControlToValidate="txtHoTen" ErrorMessage="Vui lòng điền tên bạn"
                Display="Dynamic" SetFocusOnError="True" CssClass="mau" />
                </td>
            </tr>
            <tr>
                <td class="style1">Address:</td>
                <td style="width: 70%">
                    <asp:TextBox ID="txtDiaChi" runat="server" Width="300px" CssClass="masterTooltip" ToolTip="Enter you address" />
                </td>
            </tr>
            <tr>
                <td class="style1">Phone:</td>
                <td style="width: 70%">
                    <asp:TextBox ID="txtDienThoai" runat="server" Width="300px" CssClass="masterTooltip" ToolTip="Enter you phone number" />
                </td>
            </tr>
            <tr>
                <td class="style1"><span class="mau">(*)</span>Email:</td>
                <td style="width: 70%">
                    <asp:TextBox ID="txtEmail" runat="server" Width="300px" CssClass="masterTooltip" ToolTip="Enter you email" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                        ControlToValidate="txtEmail" ErrorMessage="Vui lòng nhập Email"
                        Display="Dynamic" SetFocusOnError="True" CssClass="mau" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1"
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" runat="server"
                        ErrorMessage="Email không hợp lệ" ControlToValidate="txtEmail"
                        Display="Dynamic" SetFocusOnError="True" CssClass="mau"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style1"><span class="mau">(*)</span>Content:</td>
                <td>
                    <asp:TextBox ID="txtNoiDung" Style="background-color: #FAFAFA; padding: 5px;"
                        TextMode="MultiLine" Rows="6" runat="server" Width="500px" CssClass="masterTooltip" ToolTip="Enter you cotent" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                        ControlToValidate="txtNoiDung" ErrorMessage=""
                        Display="Dynamic" SetFocusOnError="True" CssClass="mau" />
                </td>
            </tr>
            <tr>
                <td colspan="2" id="LinkOfList" style="padding-left: 140px;">
                    <asp:Button ID="btnSend" runat="server" Text="Send Contact"
                        OnClick="btnSend_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="2" id="Td1" style="text-align: center;">
                    <asp:Label ID="Label1" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
